package com.lida.zwservice.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 账务表
 * </p>
 *
 * @author LiDa
 * @since 2022-01-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="PersonalDetailed对象", description="账务表")

public class PersonalDetailed implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "账务id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "收入或支出(income 收入，pay 支出)")
    private String type;

    @ApiModelProperty(value = "分类id")
    private String sortId;

    @ApiModelProperty(value = "名称")
    private String title;

    @ApiModelProperty(value = "金额")
    private String num;

//    @ApiModelProperty(value = "是否删除(normal,draft)")
//    private String isDeleted;


    @ApiModelProperty(value = "创建时间")
    //@TableField(fill = FieldFill.INSERT)
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date gmtCreate;

//    @ApiModelProperty(value = "更新时间")
//    //@TableField(fill = FieldFill.INSERT_UPDATE)
//    private Date gmtModified;


}
